//
//  UIButton+WF.m
//  WisdomFarm
//
//  Created by sky on 2017/10/29.
//  Copyright © 2017年 sky. All rights reserved.
//

#import "UIButton+WF.h"

@implementation UIButton (WF)

+ (UIButton *)mainButtonWithTitle:(NSString *)title {
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor = [[UIColor themeColor] colorWithAlphaComponent:.9];
    btn.titleLabel.font = SCFont(16);
    [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [btn setTitle:title forState:UIControlStateNormal];
    btn.layer.cornerRadius = 4;
    btn.clipsToBounds = YES;
    return btn;
}

+ (UIButton *)confirmButtonWithTitle:(NSString *)title {
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:.9];
    btn.titleLabel.font = SCFont(16);
    [btn setTitleColor:[UIColor themeColor] forState:UIControlStateNormal];
    [btn setTitle:title forState:UIControlStateNormal];
    btn.layer.cornerRadius = 4;
    btn.clipsToBounds = YES;
    return btn;

}

@end
